package com.garry.common.listener;

import com.garry.core.CloudSystem;
import org.springframework.web.context.ContextLoaderListener;

import javax.servlet.ServletContextEvent;

/**
 * Created by GarryGe on 2016/12/19.
 */
public class CloudListener extends ContextLoaderListener {
    @Override
    public void contextInitialized(ServletContextEvent event) {
        super.contextInitialized(event);
        try {
            CloudSystem.initialize();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
